const fs = require('fs');
//创建文件
fs.writeFile('./logs/hello.log', '您好~\n', (error)=>{
    if(error){
        console.log(error);
    }
    else{
        console.log('成功写入文件');
    }
});